const RouterModel = require('@/class/RouterModel');
// 可以配置对应模块下的baseUrl
const baseUrl = '/test';
const routerModel = new RouterModel(baseUrl);

routerModel.get('/testGet', ctx => {
  ctx.body = 'success!';
});

routerModel.post('/testPost', ctx => {
  ctx.body = {
    data: { isValidIdentifier: true },
  };
});

module.exports = routerModel;